Why is the result of this division returning a integer not a float